package com.smallA.association.mapper;

import com.smallA.association.pojo.Client;
import com.smallA.association.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author leon
 */
@Mapper
@Repository
public interface StudentMapper {
    /**
     * 通过用户id查询用户
     *
     * @param id 用户id
     * @return 返回查询结果
     */
    Student selectStudentById(@Param("id") Integer id);

    /**
     * 查询所有报名某一个社团的学生
     * @param association_id  报名的社团的id
     * @return 所有报名的学生列表
     */
    List<Student> selectUserByApply(@Param("association_id") Integer association_id);
}
